import request from '@/utils/request'

// 获取路由
export const getRouters = () => {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}

//今日数据统计
export function getToday(){
  return request({
    url: "/system/statistics/today",
    method:'get'
  });
}

// 获取近七日数据
export function getSevendays(params) {
  return request({
    url: `/system/statistics/sevenDays/${params}`,
    method: "get",
  });
}

// 获取年月数据
export function getTerms(type,query) {
  return request({
    url: `/system/statistics/term/${type}`,
    method: "get",
    params: query,
  });
}

//优惠券统计
export function getCouponstsc(query){
  return request({
    url: "/system/statistics/couponstsc",
    method: "get",
    params:query
  });
}

//页面浏览数据统计
export function getLiulan(){
  return request({
    url: "/system/statistics/liulan",
    method: "get",
  });
}

//性格测试数据统计
export function getChears(){
  return request({
    url: "/system/statistics/chears",
    method: "get",
  });
}

//banner数据统计
export function getBanners(query){
  return request({
    url: "/system/statistics/getBanners",
    method: "get",
    params:query
  });
}